<%--
  Created by IntelliJ IDEA.
  User: cnc
  Date: 2017-06-22
  Time: 9:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>博客分类</title>
  <jsp:include page="../head.jsp"/>
</head>
<body>

    <div class="topbar">
      <shiro:hasPermission name="/blogCategory/list">
      <div  class="sys_button" id="refresh"><span class="sys_icon sys_icon_refresh">&nbsp;</span>重新加载</div>
      </shiro:hasPermission>
      <shiro:hasPermission name="/blogCategory/add">
      <div  class="sys_button" id="newCategory"><span class="sys_icon sys_icon_add">&nbsp;</span>新建分类</div>
      </shiro:hasPermission>
      <shiro:hasPermission name="/blogCategory/delete/**">
      <div  class="sys_button" id="deleteCategory"><span class="sys_icon sys_icon_delete">&nbsp;</span>删除分类</div>
      </shiro:hasPermission>
      <shiro:hasPermission name="/blogCategory/update">
      <div  class="sys_button" id="updateCategory"><span class="sys_icon sys_icon_modify">&nbsp;</span>修改分类</div>
      </shiro:hasPermission>
    </div>
    <!-- 博文管理  -->
      <table id="dataCategoryList"></table>

    <!-- 展示新建表格 -->
    <div id="addCategoryDialog" class="easyui-dialog" data-options="iconCls:'user_add',closed:'true',modal:true" style="width:420px">
      <form  id="addCategoryForm" class="easyui-form" data-options="novalidate:true"  method="post" >
        <input type="hidden" id="type" name= "type">
        <table class="fromTab" cellpadding="5"  >
          <tr>
            <td><span style="font-size: 10px;">上级类别</span></td>
            <td>
              <input id="nameTop" style="width: 205px"  type="text" name="pid" class="easyui-textbox"  data-options="required:true"  />
            </td>
          </tr>
          <tr>
            <td><span style="font-size: 10px;">类别名称：</span></td>
            <td>
              <input id="name" style="width: 205px"  type="text" name="name"    class="easyui-textbox"  data-options="required:true" />
            </td>
          </tr>
        </table>
      </form>
      <div style="text-align:center;padding:5px">
        <a href="javascript:void(0)" id="saveCategoryBtn" class="easyui-linkbutton"  style="width: 100px;" >确定</a>
      </div>
    </div>
</body>


  <jsp:include page="../footer.jsp"/>
<script src="${pageContext.request.contextPath}/static/blogAdmin/sys/js/blog/blog_category.js"></script>
</html>
